package com.ds.providerticket1.controller;

import com.ds.providerticket1.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot-8-springcloud
 * @description:
 * @author: Dawson.Zhang
 * @create: 2020-05-30
 **/
@RestController
public class TicketController {

    @Autowired
    TicketService ticketService;

    @GetMapping("/ticket")
    public String getTicket() {
        String ticket = ticketService.getTicket();
        return ticket;
    }
}
